//
//  UserRulesTableViewCell.m
//  tuanGG
//
//  Created by 微他 on 15/11/24.
//  Copyright (c) 2015年 weita. All rights reserved.
//

#import "UserRulesTableViewCell.h"

@implementation UserRulesTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectedImage = [[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth-40, 15, 20, 20)];
        [self addSubview:self.selectedImage];
        
        
        self.inforlabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 5, ScreenWidth-45, 30)];
        self.inforlabel.font = [UIFont systemFontOfSize:14];
        self.inforlabel.numberOfLines = 0;
        [self addSubview:self.inforlabel];
        
        
    }
    return self;
}


- (void)setCellWithInfor:(NSString *)infor
{
    self.inforlabel.text = infor;
    CGRect size = [Common boundingRectWithSize:ScreenWidth-45 attributedString:infor space:0 font:14];
    self.inforlabel.frame = CGRectMake(10, 5, size.size.width, size.size.height);

}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
